package com.tequila.core.service;

import com.tequila.domain.dto.OrderDto;
import com.tequila.domain.entity.Order;
import com.tequila.domain.query.OrderQuery;

import fe.core.Pagination;

import java.util.List;

public interface OrderService {

    public Pagination<OrderDto> queryPageListByParam(OrderQuery query);

    public OrderDto queryById(Long id);

    public List<OrderDto> queryByIdList(List<Long> idList);

    public List<OrderDto> queryListByParam(OrderQuery query);

    public Long insert(Order entity);

    public Long save(Order entity);

    public int updateById(Order param);

    public int updateSelectiveById(Order param);

    public int deleteById(Long id);

    public int deleteByIdList(List<Long> idList);
}
